module.exports = {
  // 写法与element-ui的表单规则相同
  score: [
    {
      type: 'number',
      required: true
    },
    {
      validator: (rule, value, callback) => {
        if (value === '23232') {
          callback(new Error('重复'))
        }
        callback()
      }
    }
  ],
  count: {
    type: 'number',
    min: 8,
    required: false,
    message: 'count type error'
  }
}
